package com.hangim.pce.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.pce.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 * 规则触发处方详情表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_prescription_detail_rule")
public class SysPrescriptionDetailRule extends IdEntity {

    /**
     * 处方id
     */
    @TableField("pres_id")
    private Long presId;
    /**
     * 规则触发处方表id
     */
    @TableField("spr_id")
    private Long sprId;
    /**
     * 处方详情id
     */
    @TableField("pd_id")
    private Long pdId;
    /**
     * 规则类型 1-成分规则 2-药品规则 3-药品用量规则
     */
    private Integer type;
    /**
     * 规则ID
     */
    @TableField("rule_id")
    private Long ruleId;
    /**
     * 规则描述
     */
    private String description;
    /**
     * 状态
     */
    private Boolean active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private Long updatedBy;

    public Long getPresId() {
        return presId;
    }

    public void setPresId(Long presId) {
        this.presId = presId;
    }

    public Long getSprId() {
        return sprId;
    }

    public void setSprId(Long sprId) {
        this.sprId = sprId;
    }

    public Long getPdId() {
        return pdId;
    }

    public void setPdId(Long pdId) {
        this.pdId = pdId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "SysPrescriptionDetailRule{" +
                ", id=" + id +
                ", presId=" + presId +
                ", sprId=" + sprId +
                ", pdId=" + pdId +
                ", type=" + type +
                ", ruleId=" + ruleId +
                ", description=" + description +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                "}";
    }
}
